package com.zygh.policeasset.pojo;

import cn.afterturn.easypoi.util.PoiElUtil;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/pojo/DepreciationPolicy.class */
public class DepreciationPolicy {
    private Integer id;
    private String name;
    private String comtent;
    private Integer whetherToEnable;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setComtent(String comtent) {
        this.comtent = comtent;
    }

    public void setWhetherToEnable(Integer whetherToEnable) {
        this.whetherToEnable = whetherToEnable;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof DepreciationPolicy)) {
            return false;
        }
        DepreciationPolicy other = (DepreciationPolicy) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();
        Object other$id = other.getId();
        if (this$id == null) {
            if (other$id != null) {
                return false;
            }
        } else if (!this$id.equals(other$id)) {
            return false;
        }
        Object this$name = getName();
        Object other$name = other.getName();
        if (this$name == null) {
            if (other$name != null) {
                return false;
            }
        } else if (!this$name.equals(other$name)) {
            return false;
        }
        Object this$comtent = getComtent();
        Object other$comtent = other.getComtent();
        if (this$comtent == null) {
            if (other$comtent != null) {
                return false;
            }
        } else if (!this$comtent.equals(other$comtent)) {
            return false;
        }
        Object this$whetherToEnable = getWhetherToEnable();
        Object other$whetherToEnable = other.getWhetherToEnable();
        return this$whetherToEnable == null ? other$whetherToEnable == null : this$whetherToEnable.equals(other$whetherToEnable);
    }

    protected boolean canEqual(Object other) {
        return other instanceof DepreciationPolicy;
    }

    public int hashCode() {
        Object $id = getId();
        int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $name = getName();
        int result2 = (result * 59) + ($name == null ? 43 : $name.hashCode());
        Object $comtent = getComtent();
        int result3 = (result2 * 59) + ($comtent == null ? 43 : $comtent.hashCode());
        Object $whetherToEnable = getWhetherToEnable();
        return (result3 * 59) + ($whetherToEnable == null ? 43 : $whetherToEnable.hashCode());
    }

    public String toString() {
        return "DepreciationPolicy(id=" + getId() + ", name=" + getName() + ", comtent=" + getComtent() + ", whetherToEnable=" + getWhetherToEnable() + PoiElUtil.RIGHT_BRACKET;
    }

    public Integer getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public String getComtent() {
        return this.comtent;
    }

    public Integer getWhetherToEnable() {
        return this.whetherToEnable;
    }
}